
// dummy line to verify that the file gets to sub

#include "BJ.h"

double BJ_gD;
double BJ_gR;
double BJ_gX;
double BJ_gY;
double BJ_gZ;
Point *BJ_gTempLoc = NULL;


void BJ_init // Calls any functions that need to be called on startup, must be called in main for the related functions to work.
(
)
{
    /* initialize random seed: */
    srand ((unsigned int)time(NULL));
}

double BJ_rand
(
    double iLow,
    double iHigh
)
{
        return iLow + (((double)rand() / (double)RAND_MAX) * (iHigh - iLow));
}

double BJ_min
(
    double iFirst,
    double iSecond
)
{
    return (iSecond > iFirst) ? iFirst : iSecond;
}
double BJ_max
(
    double iFirst,
    double iSecond
)
{
    return (iFirst > iSecond) ? iFirst : iSecond;
}